<%%@ 
Control Language="C#" 
AutoEventWireup="true" 
CodeBehind="ucEditForm_<%= @table.TableName %>.ascx.cs" 
Inherits="<%=@ui_namespace%>.ucEditForm_<%= @table.TableName %>" 
%%>

<div id="divForm">
    <div id="divToolbar">
        <asp:Button ID="btnNew" runat="server" Text="New" OnClick="btnNew_Click" />
        <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" />
        <asp:Button ID="btnSaveAndClose" runat="server" Text="Save & Close" OnClick="btnSaveAndClose_Click" />
        <asp:Button ID="btnDelete" runat="server" Text="Delete" OnClick="btnDelete_Click"
            OnClientClick="return confirm('Are you sure you want to delete this record?');" />
        <asp:Button ID="btnClose" runat="server" Text="Close" OnClick="btnClose_Click"  />
    </div>
    <div id="divInfoBar">
        <asp:Label ID="lblInfoBar" runat="server" Text=""></asp:Label>
    </div>
    <div id="divErrorBar">
        <asp:BulletedList ID="blErrors" runat="server" ForeColor="#FF3300">
        </asp:BulletedList>
    </div>
    <div id="divFormBody">
    <table>
		<% for col in @table.Columns %>
        <tr>
            <td>
                <%= get_human_db_ref(col.ColumnName) %>:
            </td>
            <td>
                <asp:TextBox ID="<%= col.ColumnName %>" runat="server"></asp:TextBox>
            </td>
        </tr>
		<% end %>
    </table>
    </div>
</div>

	